pathlib get list of files

158

pathlib get list of files -

for path in pathlib.Path(".").iterdir():
    if path.is_file():
        print(path)

Comments

Submit
0 Comments